home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / ben310.zip / BENEDIT.HLP (.txt) < prev    next >
Borland Turbo Vision Help  |  1993-04-19  |  55KB  |  1,197 lines

  1. FBHFi
  2.  BENEdit 
  3. Welcome to BENEdit. This is a text editor that allows you to create and edit batch files quickly and easily. 
  4. BENEdit and BEN (the Batch ENhancer) work together to provide you with the perfect environment to do all your batch works. Now, you can use all your time to productive means by accessing all the features of BEN inside BENEdit. Just select any BEN function under the "BEN Functions" menu and answer a few questions. BENEdit will instantly create the necessary batch program lines for you. Creating batch files is never so easy before! 
  5.  menu is accessed by pressing Alt-Space.  All the other menus are accessed by pressing Alt-Z, where Z is the first letter of the menu. For example, the "File" menu is pulled down by Alt-F, and the "BEN Functions" menu is pulled down by Alt-B. H
  6.   For More Information
  7. Choose one of these for more information: 
  8.  Alphabetical
  9. listing
  10. functions
  11.  Borderstyle
  12.  Color
  13.  Using
  14. editor
  15.  Registration
  16.  Find
  17. dialog
  18. (text
  19. search)
  20.  Replace
  21. dialog
  22.  Edit
  23.  File
  24. command
  25.  File
  26. command
  27. Press ESC to put this help screen away. 
  28.  The Editor
  29. There are many ways to get into an open Edit window (make it active): 
  30.  1)  Click it.
  31.  2)  Press Alt-# (where # is that Edit
  32.      window's number).
  33.  3)  Choose the window from the Window
  34.      dialog box.
  35.  4)  Press (or click) F6 to cycle through the
  36.      open windows.
  37. To close the active Edit window, choose Window
  38. Close. Q
  39. Once in the Edit window, you enter text just as if you were using a typewriter. P
  40.  When you want to end a line, press Enter.
  41.  To exit the editor, press F10.
  42. See also: E
  43.  Cursor
  44. Movement
  45. Commands
  46.  Insert
  47. Delete
  48. Commands
  49.  Block
  50. Commands
  51.  How to run BEN:
  52. Format:   [d:][pathname] BEN function [params] [functions 
  53.           [params]...]
  54. Entering the command "BEN" alone in DOS gives you an online help of BEN's functions. Make sure that the file BEN.HLP is in the same directory as BEN.EXE. Otherwise, the online help wouldn't work. 
  55. To access a BEN function, you must enter the command "BEN" followed by the name of the function. Some functions doesn't require any parameter. An example of this is the BEEP function. You can use it by entering this command into your batch file: 
  56. BEN Beep 
  57. Other functions of BEN require one or more parameters. For example, you can clear the screen with the color blue by entering this command into your batch file: 
  58. BEN Cls Blue 
  59. BEN functions can be "stacked" one after another in a command line. For example, you can group the BEEP function and the Cls function together, one after another. In this case, BEN will first create a beep, then it will clear the screen with the color blue: 
  60. BEN Beep Cls Blue 
  61. When you stack functions together, you may use the "/" separators if you want. This is not mandatory, but it helps to increase the readability of your batch file. For example: 
  62. BEN Beep / Cls Blue 
  63.  Cursor Movement Commands
  64.   Character left  
  65.  Ctrl-S or Left arrow
  66.   Character right 
  67.  Ctrl-D or Right arrow
  68.   Word left       
  69.  Ctrl-A or Ctrl-Left arrow
  70.   Word right      
  71.  Ctrl-F or Ctrl-Right arrow
  72.   Line up         
  73.  Ctrl-E or Up arrow
  74.   Line down       
  75.  Ctrl-X or Down arrow
  76.   Scroll up       
  77.  Ctrl-W
  78.   Scroll down     
  79.  Ctrl-Z
  80.   Page up         
  81.  Ctrl-R or PgUp
  82.   Page down       
  83.  Ctrl-C or PgDn
  84.  Insert & Delete Commands
  85.   Insert mode on/off   
  86.  Ctrl-V or Ins
  87.   Insert line          
  88.  Ctrl-N
  89.   Delete line          
  90.  Ctrl-Y
  91.   Delete to end of line
  92.  Ctrl-Q Y
  93.   Delete character left
  94.  Ctrl-H or Backspace
  95.   Delete character     
  96.  Ctrl-G or Del
  97.   Delete word right    
  98.  Ctrl-T
  99.  Block Commands
  100.   Mark block begin     
  101.  Ctrl-K B
  102.   Mark block end       
  103.  Ctrl-K K
  104.   Copy block           
  105.  Ctrl-K C
  106.   Move block           
  107.  Ctrl-K V
  108.   Delete block         
  109.  Ctrl-K Y
  110.   Hide/display block   
  111.  Ctrl-K H
  112.  Alphabetical listing to all BEN functions 
  113.  Beep
  114.  CleanUp
  115.  Color
  116.  Cursor
  117.  Delay
  118.  DirDisp
  119.  DirDispA
  120.  Echo
  121.  EGAVGA
  122.  Extract
  123.  Flush
  124.  GetCD
  125.  GetKey
  126.  GetKeyL
  127.  GetKeyU
  128.  GetLine
  129.  GetLineL
  130.  GetLineU
  131.  GetVideo
  132.  GrowFilledBox
  133.  List
  134.  Locate
  135.  Menu
  136.  MenuF
  137.  MenuLCD
  138.  Message
  139.  Pause
  140.  Play
  141.  SavePath
  142.  Scroll
  143.  ShadFilledBox
  144.  Shell
  145.  Sound
  146.  TitledBox
  147.  TransparentBox
  148.  Write
  149.  WriteC
  150.  WriteV
  151.  (System) menu 
  152.     (Alt-Spacebar)
  153. The System menu appears on the far left of the menu bar and is represented by the 
  154.  symbol. (
  155. When you pull down the 
  156.  menu, you see "
  157.   About
  158.   Run
  159. MDESIGN
  160.   Register
  161. About 
  162. When you choose the About command from the 
  163.  (System) menu, a dialog box appears, showing copyright and version information. G
  164. To close the box, press Esc, Space, or Enter, or click the OK button. 
  165. MDESIGN is an utility that is added to the BEN package starting from version 3.10. It allows the user to create and customize a menu which can be accessed from BEN. Like BENEDIT, it is very easy to use. s
  166. Example: If you have created a menu data file called TEST.MNU, you can access it from BEN easily with the command 
  167. BEN MenuF TEST.MNU R
  168. Errorlevels are returned to the calling batch file similar to the Menu function. 
  169. Register (F4) 
  170. When you select the Register option under the menu bar or press F4 at anytime, you will enter the registration dialog box. To register, answer a few questions, and BENEdit will print a registration form for you automatically. All you need to do is to mail this form with the necessary payment. Quick and easy! 
  171. Why do you want to register? 
  172. You want to register because BEN and BENEdit are NOT free software. BEN and BENEdit are NOT public domain software. BEN and BENEdit are sharewares. You are expected to pay a registration fee to the author of this program if you find it useful. You are allowed to use BEN and BENEdit for free within a trial period of 60 days. After 60 days, if you continue to use BEN, you must register, or you will be violating the law. 
  173. When you register, you will get BENMOUSE for free. BENMOUSE is a a bonus version of BEN that has the ability to make use of mouses. BENMOUSE is unavailable anywhere except through registration. 9
  174. When you register, you will get free technical support. 3
  175. When you register, you will get a printed manual. J
  176. When you register, you will boost the economy of the shareware industry. '
  177. Register promptly! Be an honest user! =
  178. There are three editions of BEN available for registration: 
  179. A>   Personal Edition - $39 Z
  180.      With registration, you get the following:
  181.      -    Complete BEN package on a disk:
  182.           -    BEN.EXE with your specified registration name
  183.                encoded into the code.
  184.           -    BENMOUSE.EXE (a bonus version of BEN that has the
  185.                ability to make use of mouses) with your specified
  186.                registration name encoded into the code.
  187.           -    BENEDIT.EXE with your specified registration name
  188.                encoded into the code.
  189.           -    MDESIGN.EXE with your specified registration name
  190.                encoded into the code.
  191.           -    All other BEN-related files.
  192.      -    Next version of the complete BEN package on a disk free
  193.           of charge.
  194.      -    One printed manual that covers all aspects of BEN.
  195.      -    Free technical support.
  196. B>   Programmer's Edition - $99 Z
  197.      With registration, you get the following:
  198.      -    Complete BEN package on a disk:
  199.           -    BEN.EXE with your specified registration name
  200.                encoded into the code.
  201.           -    BENMOUSE.EXE (a bonus version of BEN that has the
  202.                ability to make use of mouses) with your specified
  203.                registration name encoded into the code.
  204.           -    BENEDIT.EXE with your specified registration name
  205.                encoded into the code.
  206.           -    MDESIGN.EXE with your specified registration name
  207.                encoded into the code.
  208.           -    All other BEN-related files.
  209.      -    Next version of the complete BEN package on a disk free
  210.           of charge.
  211.      -    One printed manual that covers all aspects of BEN.
  212.      -    A distribution license. With this license, you are
  213.           permitted to use BEN to create batch utilities that you
  214.           can distribute, royalty-free.
  215.      -    Free technical support.
  216. C>   Business Edition - $199 Z
  217.      With registration, you get the following:
  218.      -    Complete BEN package on a disk:
  219.           -    BEN.EXE with your specified registration name
  220.                encoded into the code.
  221.           -    BENMOUSE.EXE (a bonus version of BEN that has the
  222.                ability to make use of mouses) with your specified
  223.                registration name encoded into the code.
  224.           -    BENEDIT.EXE with your specified registration name
  225.                encoded into the code.
  226.           -    MDESIGN.EXE with your specified registration name
  227.                encoded into the code.
  228.           -    All other BEN-related files.
  229.      -    All future versions of the complete BEN package on a
  230.           disk free of charge.
  231.      -    Five sets of printed manuals that covers all aspects of
  232.           BEN.
  233.      -    A site license for unlimited number of users on a LAN.
  234.      -    A distribution license. With this license, you are
  235.           permitted to use BEN to create batch utilities that you
  236.           can distribute, royalty-free.
  237.      -    Free technical support.
  238.  File  (Alt-F) 
  239. The File menu offers choices for opening files, changing directories, and exiting the program. ?
  240.  Open
  241.  Save
  242.  Save
  243.  Change
  244.  Print
  245. Shell
  246.  Exit
  247.  File
  248. Open  (F3) 
  249. The Open command displays the Open a File dialog box. In this dialog box you select the text file you want to edit. &
  250. The Open
  251. File dialog box contains: 
  252.  an input
  253. box with a history list
  254.  a list
  255. box to browse the directory
  256.  the standard Cancel button
  257.  Open action button
  258.  an information panel that describes the
  259.    selected file
  260.  File
  261. New opens a new Edit window and automatically makes it active. 
  262.  File
  263. Save (F2) 
  264. Save saves the file that's in the active Edit window to disk. If the file is untitled, then a Save
  265. As dialog box opens so that you can name the file. 
  266.  File
  267. Save As... 
  268. Save As opens a dialog box where you can save the file in the active Edit window under a different name, in a different directory or on a different drive. 
  269.  File
  270. Change Dir...
  271. Change Dir brings up the Change
  272. Directory dialog box, in which you can change the current directory. 
  273.  File
  274. Print...
  275. Print command prints the contents of the active Edit Window. 
  276.  File
  277. DOS Shell 
  278. With the DOS Shell command, you can leave the program temporarily to perform a DOS command or run another program. 9
  279. To return to this program, type EXIT at the DOS prompt. 
  280.  File
  281. Exit 
  282.      (Alt-X)
  283. The Exit command terminates this program. 
  284.  Edit 
  285.     (Alt-E)
  286. The Edit menu provides commands to cut, copy and paste text in Edit Windows. You can also open a Clipboard Window to view or edit its contents. /
  287. You can choose from these Edit menu commands: 0
  288.  Undo
  289.  Copy
  290.  Paste
  291.  Clear
  292.  Show
  293. Clipboard
  294.  Edit
  295. Undo 
  296. This command takes back the last editing command you performed on a line. @
  297. It can also take back a CTRL-Y, or text typed on a blank line. 
  298.  Edit
  299. Cut (Shift-Del) 
  300. The Cut command removes the selected text from your document and places the text in the Clipboard. x
  301. You can then choose Edit
  302. Paste to paste the cut text into any other document (or somewhere else in the same document). [
  303. The text remains selected in the Clipboard so you can paste it as many times as you want. 
  304.  Edit
  305. Copy (Ctrl-Ins) 
  306. The Copy command leaves the selected text intact but places an exact copy of it in the Clipboard. x
  307. You can then choose Edit
  308. Paste to paste the cut text into any other document (or somewhere else in the same document). [
  309. The text remains selected in the Clipboard so you can paste it as many times as you want. 
  310.  Edit
  311. Paste (Shift-Ins) 
  312. The Paste command inserts the selected text from the Clipboard into the current window at the cursor position. 
  313.  Edit
  314. Show Clipboard 
  315. The Show Clipboard command opens the Clipboard window, which stores the text you cut and copy from other windows. Any text you cut or copy is appended to the end of the Clipboard. e
  316. The currently selected (highlighted) Clipboard text is the text BENEdit uses when you choose Paste. 
  317.  Edit
  318. Clear (Ctrl-Del) 
  319. The Clear command removes the selected text but does not put it into the Clipboard. Q
  320. This means you can't paste the text as you could if you had chosen Cut or Copy. &
  321. The cleared text is not retrievable. 
  322.  Search 
  323.     (Alt-S)
  324. The Search menu provides commands to search for text in your files. $
  325.   These are the available options:
  326.  Find
  327.  Replace
  328.  Search
  329. Again
  330.  Search
  331. Find... 
  332. The Find command displays the Find
  333. dialog
  334. box, where you type in the text you want to search for. t
  335. You can set several options in this dialog box that affect the search. (Ctrl-Q F is a shortcut to the dialog box.) 
  336.  Search
  337. Replace... 
  338. The Replace command displays the Replace
  339. dialog
  340. box, where you type in the text you want to search for and text you want to replace it with. 
  341.  Search
  342. Search Again 
  343. The Search Again command repeats the last Find or Replace command. ]
  344. All settings you made in the Find dialog box remain in effect when you choose Search Again. 
  345.  Window 
  346.     (Alt-W)
  347. The Window menu contains commands to close, move and perform other window-management commands. 
  348. Most of the windows in this program have all the standard window elements, including scroll bars, a close box, and zoom icons. 
  349.  Window-management commands
  350.  Tile
  351.  Cascade
  352.  CloseAll
  353.  Resize
  354.  Zoom
  355.  Next
  356.  Prev
  357.  Close
  358.  Ascii
  359. Table
  360.  Calculator
  361.  Window
  362. Size/Move 
  363.      (Ctrl-F5)
  364. Choose this command to change the size or position of the active window. 
  365.   Size
  366. If you press Shift while you use the arrow keys, you can change the size of the active window. Once you've adjusted its size or position, press Enter. Q
  367. If a window has a Resize corner, you can drag that corner to resize the window. 
  368.   Move
  369. When you choose Window
  370. Size/Move, the active window moves in response to the arrow keys. Once you've moved the window to where you want it, press Enter. F
  371. You can also move a window by dragging its title bar with the mouse. 
  372.  Window
  373. Zoom 
  374.    (F5)
  375. Choose Zoom to resize the active window to the maximum size. If the window is already zoomed, you can choose this command to restore it to its previous size. {
  376. You can also double-click anywhere on the window's title bar (except where an icon appears) to zoom or unzoom the window. 
  377.  Window
  378. Tile 
  379. Choose Window
  380. Tile to tile all file viewers on the desktop. L
  381.                
  382.                
  383.                
  384.                
  385.                
  386.                
  387.                
  388.                
  389.                
  390.                
  391.                
  392.                
  393.                
  394.                
  395.                
  396.                
  397.              Tiled Windows
  398.  Window
  399. Cascade 
  400. Choose Window
  401. Cascade to stack all file viewers on the desktop. A
  402.                          
  403.                          
  404.                          
  405.                          
  406.                          
  407.         Cascaded Windows
  408.  Window
  409. Close all 
  410. Choose Close All to close all the windows on the screen. 
  411.  Window
  412. Next 
  413. Choose Next to cycle forwards through the windows on the desktop. 
  414.  Window
  415. Previous 
  416. Choose Previous to cycle backwards through the windows on the desktop. 
  417.  Window
  418. Close 
  419.     (Alt-F3)
  420. Choose Close to close the active window. O
  421. You can also click the Close box in the upper right corner to close a window. 
  422.  Window
  423. ASCII table 
  424. The ASCII menu items opens an Ascii table that displays the IBM PC character set. The current character is marked by a blinking block cursor, and the hexadecimal and decimal ASCII values of the character are displayed below the chart. A new character is selected by pressing it on the keyboard, by clicking the mouse on it in the chart, or by moving the cursor using the cursor keys. 
  425.  Calculator 
  426. When you choose Calculator, a four-function with add, subtract, multiply, and divide ability is opened on the desktop. -
  427. To operate the calculator you can either use the keyboard or press the buttons on the calculator with the mouse.  The 'C' key clears the calculator, the '
  428. ' key will erases the last character typed, and the '
  429. ' key toggles the value from positive to negative (the keyboard equivalent of '
  430. ' is '_'). 
  431.  BEN Functions 
  432.     (Alt-B)
  433. The BEN Functions menu consists of six submenus. Each of these submenus contain a different category of BEN functions that you can access. 
  434. When you select a BEN function inside any of these six submenus, you will only need to answer a few questions (or sometimes, no question at all) and BENEdit will automatically insert the correct BEN command line into the current editing window. 
  435. These submenus are: p
  436. Functions
  437.  Input
  438. Functions
  439.  Message
  440. Functions
  441.  Music
  442. Functions
  443.  Screen
  444. Functions
  445.  Miscellaneous
  446. Functions
  447.  Box Functions 
  448. The Box Functions menu is a submenu under the BEN
  449. Functions
  450. menu. All the functions under this menu can draw boxes on the screen: J
  451.  FilledBox
  452.  GrowFilledBox
  453.  ShadFilledBox
  454.  TitledBox
  455.  TransparentBox
  456.   Box Function 
  457. Syntax: Box x1 y1 x2 y2 foreground background borderstyle 
  458. This is a box
  459. function that draws an empty box on the screen with an upper-left corner of (x1,y1) and a lower-right corner of (x2,y2). o
  460.  Example
  461.  BEN Box 1 1 80 25 White Blue 1
  462.  BEN Box 10 10 20 20 Yellow Black 3
  463.  BEN Box 4 4 8 8 9 2 65
  464.   Borderstyle 
  465. Borderstyle can be one of the following: 
  466.      0    -    no border
  467.      1    -    single line box (
  468.      2    -    double line box (
  469.      3    -    double sides, single top and bottom
  470.      4    -    single sides, double top and bottom
  471.      5    -    single left and upper, double lower and right
  472.      6    -    menu box style
  473.      7+   -    the border is drawn using the ASCII character represented by
  474.                the style value.
  475.   Color 
  476. The "colors" available for use are Black, Blue, Green, Cyan, Red, Magenta, Brown, LightGray, DarkGray, LightBlue, LightGreen, LightCyan, LightRed, Light Magenta, Yellow, and White. 
  477. You can also specify the colors with a number if you want. For example, instead of using the word "Black", you can use the number 0. Instead of using the word "Blue", you can use the number 1. And so on. ?
  478. Here is a list of the colors and their corresponding numbers: G
  479.  Black:           0
  480.  Blue:            1
  481.  Green:           2
  482.  Cyan:            3
  483.  Red:             4
  484.  Magenta:         5
  485.  Brown:           6
  486.  LightGray:       7
  487.  DarkGray:        8
  488.  LightBlue:       9
  489.  LightGreen:      10
  490.  LightCyan:       11
  491.  LightRed:        12
  492.  Light Magenta:   13
  493.  Yellow:          14
  494.  White:           15
  495.   FilledBox Function 
  496. Syntax: FilledBox x1 y1 x2 y2 foreground background borderstyle 
  497. This is a box
  498. function that draws a filled box on the screen with an upper-left corner of (x1,y1) and a lower-right corner of (x2,y2). 
  499.  Example
  500.  BEN FilledBox 1 1 80 25 White Blue 1
  501.  BEN FilledBox 10 10 20 20 Yellow Black 3
  502.  BEN FilledBox 4 4 8 8 9 9 2 65
  503.   GrowFilledBox Function 
  504. Syntax: GrowFilledBox x1 y1 x2 y2 foreground background borderstyle 
  505. This is a box
  506. function that draws a filled box onto the screen with an upper-left corner of (x1,y1) and a lower-right corner of (x2,y2). This filled box grows out onto the screen for a spectacular effect. 
  507.  Example
  508.  BEN GrowFilledBox 1 1 80 25 White Blue 1
  509.  BEN GrowFilledBox 10 10 20 20 Yellow Black 3
  510.  BEN GrowFilledBox 4 4 8 8 9 2 65
  511.   ShadFilledBox Function 
  512. Syntax: ShadFilledBox x1 y1 x2 y2 foreground background borderstyle 
  513. This is a box
  514. function that draws a filled box onto the screen with an upper-left corner of (x1,y1) and a lower-right corner of (x2,y2). This filled box has a shadow. 
  515.  Example
  516.  BEN ShadFilledBox 1 1 80 25 White Blue 1
  517.  BEN ShadFilledBox 10 10 20 20 Yellow Black 3
  518.  BEN ShadFilledBox 4 4 8 8 9 2 65
  519.   TitledBox Function 
  520. Syntax: TitledBox x1 y1 x2 y2 foreground background borderstyle title 
  521. This is a box
  522. function that draws a filled box onto the screen with an upper-left corner of (x1,y1) and a lower-right corner of (x2,y2). This filled box has a title. Please note that tildes (~) in the message are interpreted as spaces. 
  523.  Example
  524.  BEN TransparentBox 1 1 80 25 White Blue 1 Good~box!
  525.  BEN TransparentBox 10 10 20 20 Yellow Black 3 Great~box!
  526.  BEN TransparentBox 4 4 8 8 9 2 65 Best~box!
  527.   TransparentBox Function 
  528. Syntax: TransparentBox x1 y1 x2 y2 foreground background 
  529. This is a box
  530. function that paints the region specified by (x1,y1) - (x2,y2) with the specified foreground and background colors. Text that are originally on the screen are not erased; they are just painted with a new color. 
  531.  Example
  532.  BEN TransparentBox 1 1 80 25 White Blue
  533.  BEN TransparentBox 10 10 20 20 Yellow Black
  534.  BEN TransparentBox 4 4 8 8 9 2
  535.  Input Functions 
  536. The Input Functions menu is a submenu under the BEN
  537. Functions
  538. menu. All the functions under this menu can get input from the user: S
  539.  GetKey
  540.  GetKeyL
  541.  GetKeyU
  542.  GetLine
  543.  GetLineL
  544.  GetLineU
  545.  Menu
  546.  MenuF
  547.  MenuLCD
  548.   Ask Function 
  549. Syntax: Ask options 
  550. This is an input
  551. function that waits for the user to press a key that is contained in the 'options' string. The option that the user selects is passed to the batch file as an errorlevel. 
  552. For instance, if the options string is ABCDE and the user presses the letter C on the keyboard, an errorlevel of 3 is returned (C is the third character of the string). 
  553.  Example
  554.  @Echo Off
  555.  BEN Echo A. Format your hard drive.
  556.  BEN Echo B. Diskcopy a disk.
  557.  BEN Echo C. Run Windows.
  558.  BEN Echo D. Run DOSShell.
  559.  BEN Echo E. Play Sim City.
  560.  BEN Echo ~
  561.  BEN Echo Please make your selection.
  562.  BEN Ask ABCDE
  563.  If Errorlevel 5 If Not Errorlevel 6 Goto SimCity
  564.  If Errorlevel 4 If Not Errorlevel 5 DOSShell
  565.  If Errorlevel 3 If Not Errorlevel 4 C:\WIN\WIN
  566.  If Errorlevel 2 If Not Errorlevel 3 DiskCopy A: A:
  567.  If Errorlevel 1 If Not Errorlevel 2 Format C:
  568.  Goto End
  569.  :Simcity
  570.  CD\Simcity
  571.  Simcity
  572.  :End
  573.   GetKey Function 
  574. Syntax: GetKey |
  575. This is an input
  576. function that waits for the user to enter a key. This key is returned via the environment
  577. variable
  578. %BEN%. G
  579.  Example
  580.  BEN GetKey
  581.  BEN Echo You've pressed the %BEN% key!
  582.   GetKeyL Function 
  583. Syntax: GetKeyL 
  584. This is an input
  585. function that waits for the user to enter a key. This key is converted into lowercase and returned via the environment
  586. variable
  587. %BEN%. H
  588.  Example
  589.  BEN GetKeyL
  590.  BEN Echo You've pressed the %BEN% key!
  591.   GetKeyU Function 
  592. Syntax: GetKeyU 
  593. This is an input
  594. function that waits for the user to enter a key. This key is converted into uppercase and returned via the environment
  595. variable
  596. %BEN%. H
  597.  Example
  598.  BEN GetKeyU
  599.  BEN Echo You've pressed the %BEN% key!
  600.   GetLine Function 
  601. Syntax: GetLine 
  602. This is an input
  603. function that waits for the user to enter a string. This string is returned via the environment
  604. variable
  605. %BEN%. ]
  606.  Example
  607.  BEN Echo What's your name?
  608.  BEN GetLine
  609.  BEN Echo So your name is %BEN%!
  610.   GetLineL Function 
  611. Syntax: GetLineL 
  612. This is an input
  613. function that waits for the user to enter a string. This string is converted into lowercase and returned via the environment
  614. variable
  615. %BEN%. k
  616.  Example
  617.  BEN Echo What's your name?
  618.  BEN GetLineL
  619.  BEN Echo So your name is %BEN% in lowercase!
  620.   GetLineU Function 
  621. Syntax: GetLineU 
  622. This is an input
  623. function that waits for the user to enter a string. This string is converted into uppercase and returned via the environment
  624. variable
  625. %BEN%. k
  626.  Example
  627.  BEN Echo What's your name?
  628.  BEN GetLineU
  629.  BEN Echo So your name is %BEN% in uppercase!
  630.   Menu Function 
  631. Syntax: Menu title choice1 [choice2 choice3...] C
  632. This is an input
  633. function that displays a menu on the screen. The choice that is selected by the user is passed back to the batch file as an errorlevel. For instance, if the user chooses choice #3, an errorlevel of 3 is returned. On the other hand, if the user opts to choose nothing, then an errorlevel of 0 is returned. 
  634. Please note that tildes (~) are interpreted as spaces, and no other function can be stacked after the Menu function is used. Also, use a minus sign (-) to tell BEN to display a blank line. 
  635.  Example
  636.  @Echo Off
  637.  BEN Menu Please~make~a~selection: Format~your~hard~drive Diskcopy~a~disk Run~Windows Run~DOSShell Play~Simcity
  638.  If Errorlevel 5 Goto SimCity
  639.  If Errorlevel 4 Goto DOSShell
  640.  If Errorlevel 3 Goto Windows
  641.  If Errorlevel 2 Goto DiskCopy
  642.  If Errorlevel 1 Goto Format
  643.  BEN Echo You didn't make a selection!
  644.  Goto End
  645.  :Format
  646.  Format C:
  647.  Goto End
  648.  :DiskCopy
  649.  DiskCopy A: A:
  650.  Goto End
  651.  :Windows
  652.  C:\WIN\WIN
  653.  Goto End
  654.  :DOSShell
  655.  DOSShell
  656.  Goto End
  657.  :SimCity
  658.  CD\SimCity
  659.  SimCity
  660.  :End
  661.   MenuF Function 
  662. Syntax: MenuF filename C
  663. This is an input
  664. function that "runs" a menu designed by MDESIGN. 
  665.  MenuLCD Function 
  666. Syntax: MenuLCD title choice1 [choice2 choice3...] 
  667. This is an input
  668. function that works exactly like the menu
  669. function, except that it displays the menu in black and white for increased legibility on LCD screens. 
  670.  Message Functions 
  671. The Message Functions menu is a submenu under the BEN
  672. Functions
  673. menu. All the functions under this menu can display messages on the screen: -
  674.  Echo
  675.  List
  676.  Message
  677.  Write
  678.  WriteC
  679.  WriteV
  680.   Echo Function 
  681. Syntax: Echo message [message...] 
  682. This is a message
  683. function that works like the DOS Echo function. Everything after the word Echo is displayed using the current writing color. Thus, no other functions can be stacked after Echo is used. T
  684. If you wish to display a blank line, use the command "BEN Echo ~". If you wish to display more than one space between two words, use the tilde (~) as a separator instead. For example, if you want to display the words "Hello   World, this is the computer speaking.", use the command "BEN Echo Hello~~~World, this is the computer speaking." 
  685.  Example
  686.  BEN Echo Hello World!
  687.  BEN Echo This is a test!
  688.  BEN Echo ~
  689.  BEN Echo Hello~~~World, this is the computer speaking.
  690.   List Function 
  691. Syntax: List filename title 
  692. This is a message
  693. function that acts as a file browser for the file specified by "filename". Tildes (~) in the title are interpreted as spaces. o
  694.  Example
  695.  BEN List C:\AUTOEXEC.BAT This~is~your~AUTOEXEC!
  696.  BEN List BEN.TXT You~are~reading~BEN.TXT!
  697.   Message Function 
  698. Syntax: Message line1 [line2 line3...] n
  699. This is a message
  700. function that pops up a message box onto the screen. Tildes (~) are interpreted as spaces. =
  701.  Example
  702.  BEN Message Hello~World! This~is~a~test!
  703.  This example will pop up this message box:
  704.           
  705.           
  706.                
  707.           
  708. Hello World!   
  709.           
  710. This is a test!
  711.           
  712.                
  713.           
  714.      OK  
  715.      
  716.           
  717.      
  718.           
  719.   Write Function 
  720. Syntax: Write foreground background message 
  721. This is a message
  722. function that writes a string onto the screen using the specified foreground and background colors. Tildes (~) in the message are interpreted as spaces, and a semi-colon (;) at the end of the message tells BEN not to wrap to the next line. 
  723.  Example
  724.  BEN Write LightRed Blue Hello~World!
  725.  BEN Write LightGreen Black This~is~a~test!;
  726.  BEN Write 7 1 Another~test!
  727.   WriteC Function 
  728. Syntax: WriteC foreground background message 
  729. This is a message
  730. function that is similar in function as Write, but the message is centered between the two sides of the monitor. 
  731.  Example
  732.  BEN WriteC LightRed Blue Hello~World!
  733.  BEN WriteC LightGreen Black This~is~a~test!;
  734.  BEN WriteC 7 1 Another~test!
  735.   WriteV Function 
  736. Syntax: WriteV x y foreground background message 
  737. This is a message
  738. function that is similar in function as Write, but the message is written as a vertical column that starts from the position (x,y). 
  739.  Example
  740.  BEN WriteV 1 1 Yellow Blue An~important~message
  741.  BEN WriteV 40 10 LightCyan Black Hello!
  742.  BEN WriteV 80 1 7 1 Great!!!
  743.  Music Functions 
  744. The Music Functions menu is a submenu under the BEN
  745. Functions
  746. menu. All the functions under this menu can create sound from the PC speaker: 
  747.  Beep
  748.  Play
  749.  Sound
  750.   Beep Function 
  751. Syntax: Beep <
  752. This is a music
  753. function that simply creates a beep sound. 
  754.  Example
  755.  BEN Beep
  756.   Play Function 
  757. Syntax: Play playstring 
  758. This is a music
  759. function that plays music using the computer's speaker. The playstring is exactly the same in format as the BASIC Play statement. Here is a list of the music commands supported: 
  760.  ML:  legato (8/8 note length)
  761.  MN:  normal music (7/8 note length)
  762.  Ln:  length of notes (n=1-64; note length=1/n, eg. n=2 for
  763.       1/2 note)
  764.  Nn:  Note number (n=0-84; 0 is a rest)
  765.  On:  Octave (n=0-6, default 4)
  766.  Pn:  Pause (n=1-64; pause length=1/n, eg. n=4 for 1/4 note)
  767.  Tn:  Tempo (n=32-255, default 120; quarter notes per minute)
  768.   [:   Move down an octave (min 0)
  769.   ]:   Move up an octave (max 6)
  770. You can also use the actual letters of the notes (C, D, E, F, G, A, and B). These correspond to "do, re, mi, fa, so, la, ti". To play a scale, you should use "CDEFGAB]C". 
  771. The notes may be followed by dots, by note lengths, and by sharp or flat symbols (a '+' or '#' for a sharp, a '-' for a flat). For example, 'D-.' is a dotted D flat. The dot means that the note will play for half again its usual length. Dots can be repeated. 
  772. You can also use "<" for "[" and ">" for "]" in BEN data files that are read by BEN's T function. Don't use these in the command line however, because DOS will interpret them as redirection signs. If you use them, strange errors may occur. =
  773.  Example
  774.  BEN Play O5CDEFGFEDCP1CC
  775.  BEN Play ]EEEC
  776.   Sound Function 
  777. Syntax: Sound frequency duration 
  778. This is a music
  779. function that uses the computer's speaker and produces a tone with the specified frequency for the specified duration. Frequency is measured in hertz and duration is measured in milliseconds. <
  780.  Example
  781.  BEN Sound 1000 1000
  782.  BEN Sound 2000 100
  783.  Screen Functions 
  784. The Screen Functions menu is a submenu under the BEN
  785. Functions
  786. menu. All the functions under this menu can control the properties of the screen: 7
  787.  Color
  788.  Cursor
  789.  EGAVGA
  790.  GetVideo
  791.  Locate
  792.  Scroll
  793.   Cls Function 
  794. Syntax: Cls background W
  795. This is a screen
  796. function that clears the screen with the specified background color. N
  797.  Example
  798.  BEN Color Yellow Blue
  799.  BEN Color White Red
  800.  BEN Color 7 1
  801.   Color Function 
  802. Syntax: Color foreground background y
  803. This is a screen
  804. function that changes the current writing color. ANSI.SYS must be loaded for this function to operate. N
  805.  Example
  806.  BEN Color Yellow Blue
  807.  BEN Color White Red
  808.  BEN Color 7 1
  809.   Cursor Function 
  810. Syntax: Cursor On/Off/Full/Half 
  811. This is a screen
  812. function that changes the cursor shape. Use On for a normal cursor (_), Off for no cursor ( ), Full for a block cursor (
  813. ) and Half for a half-block cursor (
  814.  Example
  815.  BEN Cursor Off
  816.  BEN Cursor Full
  817.   EGAVGA Function 
  818. Syntax: EGAVGA On/Off 
  819. This is a screen
  820. function that switches the EGA 43 / VGA 50 line mode on or off. If the EGA 43 / VGA 50 line mode is switched on successfully, an errorlevel of 2 is passed back to the batch file. Otherwise, an errorlevel of 1 is returned. 
  821.  Example
  822.  @Echo Off
  823.  BEN EGAVGA On
  824.  If Errorlevel 2 Goto Success
  825.  BEN Echo Sorry. Your computer cannot display in
  826.  BEN Echo the EGA 43 or the VGA 50 line mode.
  827.  Goto End
  828.  :Success
  829.  BEN Cls Blue Color White Blue Locate 30 30
  830.  BEN Echo See how big your screen is!
  831.  BEN Locate 30 33
  832.  Pause
  833.  BEN EGAVGA Off
  834.  :End
  835.  BEN CleanUp
  836.   GetVideo Function 
  837. Syntax: GetVideo 
  838. This is a screen
  839. function that finds out what kind of video system is installed. It returns the result in the environment
  840. variable
  841. %BEN%. :
  842. The possible values that can be returned are as follows: 
  843.  Mono:     The computer has a monochrome system.
  844.  CGA:      The computer has a CGA system.
  845.  EGA:      The computer has an EGA system.
  846.  MCGA:     The computer has a MCGA system.
  847.  VGA:      The computer has a VGA system.
  848.  Unknown:  Unknown video system detected.
  849.  Example
  850.  @Echo Off
  851.  BEN GetVideo
  852.  If "%BEN%"=="Mono" GOLF /Mono
  853.  If "%BEN%"=="CGA" GOLF /CGA
  854.  If "%BEN%"=="EGA" GOLF /EGA
  855.  If "%BEN%"=="MCGA" GOLF /MCGA
  856.  If "%BEN%"=="VGA" GOLF /VGA
  857. This example shows a batch file that passes different parameters to the GOLF program (a game?) depending on what video system the computer has. 
  858.   Locate Function 
  859. Syntax: Locate x y O
  860. This is a screen
  861. function that moves the screen cursor to the position (x,y). 5
  862.  Example
  863.  BEN Locate 1 1
  864.  BEN Locate 10 15
  865.   Scroll Function 
  866. Syntax: Scroll x1 y1 x2 y2 direction 
  867. This is a screen
  868. function that scrolls the text enclosed in the (x1,y1)-(x2,y2) box. 'Direction' can be one of the following: UP, DOWN, LEFT, RIGHT. I
  869.  Example
  870.  BEN Scroll 1 1 80 25 UP
  871.  BEN Scroll 10 10 20 20 LEFT
  872.  Miscellaneous Functions 
  873. The Miscellaneous Functions menu is a submenu under the BEN
  874. Functions
  875. menu. All the functions under this menu are functions that do not belong to the other five menus: V
  876.  Cleanup
  877.  Delay
  878.  DirDisp
  879.  DirDispA
  880.  Extract
  881.  Flush
  882.  GetCD
  883.  Pause
  884.  Savepath
  885.  Shell
  886.   CleanUp Function 
  887. Syntax: CleanUp 9
  888. This is a miscellaneous
  889. function that does four things: 
  890.  1.   Changes the writing color to normal DOS color (same as
  891.       calling BEN Color
  892. LightGray
  893. Black).
  894.  2.   Changes the cursor to a normal shape (same as calling
  895.       BEN Cursor
  896.  3.   Erases all the environment
  897. variables that have been
  898.       created by BEN (IE. %BEN%, %BEN2%, %BEN3%, etc.)
  899.  4.   Restores the PATH if the SavePath function had been
  900.       called previously. (Please refer to the discussion on
  901.       the SavePath function.)
  902. CleanUp should be called at the end of a batch file.  
  903.  Example
  904.  BEN CleanUp
  905.   Delay Function 
  906. Syntax: Delay milliseconds 
  907. This is a miscellaneous
  908. function that pauses the computer for the specified number of milliseconds. (1000 milliseconds = 1 second) 3
  909.  Example
  910.  BEN Delay 1000
  911.  BEN Delay 5000
  912.   DirDisp Function 
  913. Syntax: DirDisp directory 
  914. This is a miscellaneous
  915. function that displays a file selection box and allows the user to select a file. The name of the selected file is stored into environment
  916. variable
  917. %BEN%. If the user presses ESC and opts not to choose any file, then %BEN% is set to contain nothing. 2
  918. To have a greater control, use DirDispA instead. 
  919.  Example
  920.  BEN DirDisp C:\
  921.  If "%BEN%"=="" Goto Chose_Nothing
  922.  BEN Echo You've chosen %BEN%!
  923.  Goto End
  924.  :Chose_Nothing
  925.  BEN Echo You didn't choose any file!
  926.  :End
  927.   DirDispA Function 
  928. Syntax: DirDispA directory filemask sortorder 
  929. This is a miscellaneous
  930. function that is an advanced version of DirDisp. In addition to the starting directory, you can specify the file mask and the sorting order. %
  931. 'Filemask' specifies the types of file you want to display. For example, if you want to display only EXE files, you can use a filemask of "*.EXE". If you want to display both EXE and COM files, you can use a filemask of "*.EXE~*.COM" [different types of files are separated with tildes (~).] k
  932. 'Sortorder' specifies the order which DirDispA uses to display the files. It can be one of the following: [
  933.  NAME      -    Files sorted on names in ascending order.
  934.  EXTENSION -    Files sorted on extensions in ascending
  935.                 order.
  936.  TIME      -    Files sorted on time from the earliest to the
  937.                 latest.
  938.  SIZE      -    Files sorted on size from the smallest to the
  939.                 largest.
  940.  X         -    Files are unsorted.
  941. You can also specify only the first letter of the sortorder you want. For example, instead of "BEN DirDispA C:\ *.* NAME", you can use "BEN DirDispA C:\ *.* N". This is not suggested, however, because it decreases the legibility of your batch file. i
  942.  Example
  943.  BEN DirDispA C:\ *.BAT~*.SYS~*.EXE EXTENSION
  944.  BEN Echo You've picked the file %BEN%!
  945.   Extract Function 
  946. Syntax: Extract source mask 
  947. This is a miscellaneous
  948. function that extracts a certain part of a fully qualified filename (eg. the result from DirDisp or GetCD) and stores it into %BEN%. 
  949. 'Source' specifies the source string from which you want to extract information. Usually, you should place an environment variable here. 
  950. 'Mask' specifies the part of the selected filename you want BEN to return to you. It can contain one or more letters which define what BEN should put into %BEN%: 
  951.  D    -    Returns only the drive part of the source (eg. C:)
  952.  P    -    Returns only the path part of the source without
  953.            the trailing backslash (eg. \TELECOM)
  954.  \    -    Adds a trailing backslash to the path
  955.  N    -    Returns only the name part of the source
  956.            (eg. AUTOEXEC)
  957.  .    -    Adds a dot to the name
  958.  E    -    Returns only the extension part of the source (eg.
  959.            BAT)
  960.  Example
  961.  BEN DirDisp C:\TELECOM
  962.  SET SELECT=%BEN%
  963.  BEN Extract %SELECT% D
  964.  BEN Echo You've selected a file that is located in
  965.      drive %BEN%
  966.  BEN Extract %SELECT% P
  967.  BEN Echo This file has a path (without trailing
  968.      backslash) of %BEN%
  969.  BEN Extract %SELECT% P\
  970.  BEN Echo This file has a path (with trailing
  971.      backslash) of %BEN%
  972.  BEN Extract %SELECT% N
  973.  BEN Echo This file's name is %BEN%
  974.  BEN Extract %SELECT% E
  975.  BEN Echo And its extension is %BEN%
  976.  BEN Extract %SELECT% N.E
  977.  BEN Echo Its filename (name+extension) is %BEN%
  978.  BEN Extract %SELECT% P\N.E
  979.  BEN Echo Its path, name and extension is %BEN%
  980.  BEN Extract %SELECT% DP\N.E
  981.  BEN Echo This file's full name is %BEN%!
  982.  BEN Echo ~
  983.  BEN GetCD
  984.  BEN Extract %BEN% DRIVE
  985.  BEN Echo You're currently in %BEN% drive.
  986.   Flush Function 
  987. Syntax: Flush C
  988. This is a miscellaneous
  989. function that clears the keyboard buffer. 
  990.  Example
  991.  BEN Flush
  992.   GetCD Function 
  993. Syntax: GetCD 
  994. This is a miscellaneous
  995. function that finds out what the current directory is and stores it into the environment
  996. variable
  997. %BEN%. P
  998.  Example
  999.  BEN GetCD
  1000.  BEN Echo Hey man, you're in the %BEN% directory!
  1001.   Pause Function 
  1002. Syntax: Pause Y
  1003. This is a miscellaneous
  1004. function that pauses the computer until the user presses a key. 
  1005.  Example
  1006.  BEN Pause
  1007.   SavePath Function 
  1008. Syntax: SavePath 
  1009. This is a miscellaneous
  1010. function that saves the PATH environment variable into a file called SAVEPATH.DAT (this file is stored in the current directory) and erases the PATH environment variable. Using this function can free up environment space so that BEN functions that make use of the environment (eg. GetLine) can function better. Remember to use the CleanUp function to restore the PATH upon the completion of the batch file. 
  1011.  Caution:  Make sure that you don't change directory after
  1012.            using SavePath. If you do, you must change back to
  1013.            the directory where SavePath stores SAVEPATH.DAT
  1014.            before you run CleanUp.
  1015.  Example
  1016.  @Echo Off
  1017.  BEN SavePath
  1018.  BEN Echo Your PATH has been saved!
  1019.  BEN CleanUp
  1020.  BEN Echo Your PATH is restored!
  1021.   Shell Function 
  1022. Syntax: Shell 
  1023. This is a miscellaneous
  1024. function that "jumps to DOS". After this function is used, the user can work in DOS as long as he/she want. He/she can let the batch file regain control by typing EXIT. 
  1025.  Example
  1026.  BEN Shell
  1027.   T Function 
  1028. Syntax: T filename 
  1029. This is a miscellaneous
  1030. function that runs all the instructions in the data file. This lets BEN perform its jobs at a quicker speed. 
  1031. The data file is just a normal text file (ASCII format). It can be created with any text editor, such as BENEDIT or the EDLIN or the EDIT programs included with DOS. The format of the text file is as follows: E
  1032.  FUNCTIONS
  1033.  FUNCTIONS
  1034.  FUNCTIONS
  1035.  FUNCTIONS
  1036.  <End of File>
  1037. The FUNCTIONS are exactly the same functions as those that are ran from the command line. For example: 
  1038.  BEN T DATA.DAT
  1039.  where DATA.DAT contains:
  1040.  Box 1 1 80 25 Yellow Green 3
  1041.  Pause
  1042.  Cursor OFF
  1043.  Cls Blue
  1044.  <End of File>
  1045.  is exactly the same as doing this:
  1046.  BEN Box 1 1 80 25 Yellow Green 3
  1047.  BEN Pause
  1048.  BEN Cursor OFF
  1049.  BEN Cls Blue
  1050. Usually, you should only use the T function when you have a large quantity of functions that you wish to be processed by BEN. >
  1051.  Example
  1052.  BEN T MYFILE.DAT
  1053.  BEN T C:\BATCH\INSTRUCT
  1054.  (DOS) menu 
  1055.     (Alt-D)
  1056. The DOS menu contains a number of commonly used DOS Batch functions. After selecting the wanted item, you will only need to answer a few questions and BENEdit will automatically insert the correct batch line into the current editing window. #
  1057.   @Echo
  1058.   For
  1059. Errorlevel
  1060.   @Echo Off 
  1061. BEN simply adds the line "@Echo Off" into the current editing window. 
  1062.   For 
  1063. DOS provides a command called "For" to batch file writers. After choosing this item, you only need to fill in two criteria lines and BENEdit would create the necessary "For" line for you automatically. ?
  1064. Example: You want to "Type" out all the files ending in .BAT. (
  1065. In the first input line, enter "*.BAT" *
  1066. In the second input line, enter "Type *" -
  1067. BENEdit would automatically create the line "
  1068.  "For %%v in (*.BAT) do Type %%v"
  1069. for you. 
  1070.   If Errorlevel 
  1071. Many times, batch file writers need to check the errorlevel returned from a program (e.g., BEN). In many of these cases, he/she would find himself repeating many lines of statements: 
  1072.  If Errorlevel 4 If Not Errorlevel 5 . . .
  1073.  If Errorlevel 3 If Not Errorlevel 4 . . .
  1074.  If Errorlevel 2 If Not Errorlevel 3 . . .
  1075. By choosing this command, you can save yourself a lot of time by having BENEdit fill these lines for you. 
  1076.  Run 
  1077.     (Alt-R)
  1078. When you select Run, BENEdit will save and run the batch file in the current editing window. G
  1079. Note: select this option only when you are working with a batch file. 
  1080.  Help on Open a File Dialog Box 
  1081. The Open a File dialog box contains an input box, a file
  1082. list, a file information panel, the standard button Cancel, one other action button (Open), plus a history list that's attached to the Name
  1083. inputbox. 
  1084.  Name 
  1085.                                  
  1086. The Name input box is where you enter the name of the file to load, or the file-name mask to use as a filter for the Files list box (for example, *.BAT). 
  1087.  Files 
  1088.                                  
  1089.   INSTALL.BAT   
  1090.   C.BAT         
  1091.   QD.BAT        
  1092.   D.BAT         
  1093.   PRO.BAT       
  1094.   E.BAT         
  1095.   DIRR.BAT      
  1096.   F.BAT         
  1097.   G.BAT         
  1098.   ..            
  1099.   W.BAT         
  1100.   \TRASH        
  1101.   A.BAT         
  1102.   \OTHERS       
  1103.   B.BAT         
  1104.                 
  1105. The Files list box lists the names of files in the current directory that match the file-name mask in the Name input box, plus the parent directory and all subdirectories. 
  1106.  C:\BATCH\QD.BAT                          
  1107.  QD.BAT         342  Jul 14,1990  12:00pm 
  1108. The File information panel shows the path name, file name, date, time, and size of the selected file. =
  1109. None of the items on this information panel are selectable. 
  1110.  [ Cancel ] 
  1111. If you choose Cancel, nothing changes and no action occurs, and the dialog box is put away. M
  1112. (Esc always cancels a dialog box, even if a Cancel button does not appear.) 
  1113.  [ Open ] 
  1114. In the Open a File dialog box, if you choose the Open button BENEdit opens a file and places the selected file in that window. 
  1115.  Help on the Change Directory dialog box 
  1116. The Change Directory dialog box consists of an input box, a list box, the standard OK and Help buttons, and two other buttons (Chdir and Revert). |
  1117.  Directory Name 
  1118.                                      
  1119. The Directory Name input box is where you type in the path of the new directory. 
  1120.  Directory Tree 
  1121.    Drives                            
  1122. C:\                            
  1123.      
  1124. BATCH                        
  1125.        
  1126. TRASH                      
  1127. The Directory Tree list box enables you to navigate directories by using the selecting bar and pressing Enter. 
  1128. If you're using the keyboard, press Enter to make the selected directory be the current directory, then choose OK or press Esc to exit the dialog box. +
  1129.  [Chdir ] 
  1130. The Chdir button changes the current directory once you've selected or typed in a directory name. +
  1131.  [Revert] 
  1132. The Revert button goes back to the previous directory, as long as you haven't yet exited the dialog box. 
  1133.  Help on the Find dialog box
  1134. The Find dialog box contains an input box with a history list, three sets of radio buttons, one group of check boxes, and the standard OK, Cancel, and Help buttons. 
  1135.  Text to Find 
  1136.                        
  1137.   Enter the search string in the Text to Find
  1138.   input box and choose OK to begin the search,
  1139.   or choose Cancel to forget it.
  1140.   Press the Down arrow key if you want to show
  1141.   the history list associated with the input
  1142.   box.
  1143.  [X] Case sensitive     
  1144.  [X] Whole words only   
  1145.  [X] Regular expression 
  1146.   This group of check boxes governs the kind of
  1147.   strings that BENEdit searches for.
  1148.  Direction     
  1149. ) Forward  
  1150.   ( ) Backward 
  1151.   Direction specifies which way you want BENEdit
  1152.   to search, starting from the current cursor
  1153.   position. Forward (from the current position
  1154.   to the end of the file) is the default.
  1155.  Scope                
  1156. ) Global          
  1157.   ( ) Selected text   
  1158.   Scope determines how much of the file BENEdit
  1159.   searches in. Global (entire file) is the default scope.
  1160.  Origin               
  1161. ) From Cursor     
  1162.   ( ) Entire Scope    
  1163.   Origin specifies where the search should
  1164.   start.
  1165. Most components of the Replace dialog box are identical to those in the Find
  1166. dialog
  1167. box, except for the following additions: 
  1168.  New Text 
  1169.                        
  1170.   Enter the replacement string in the New Text
  1171.   input box.
  1172.   You can also use the history list to the right
  1173.   of the box to select a string you've used
  1174.   previously.
  1175.  [X] Case sensitive     
  1176.  [X] Whole words only   
  1177.  [X] Regular expression 
  1178.  [X] Prompt to Replace  
  1179.   This group of check boxes governs the kind of
  1180.   strings that BENEdit searches for, and whether
  1181.   the replacement is automatic.
  1182.  [ Change All ] 
  1183.   Choose Change All if you want BENEdit to replace
  1184.   all occurrences of the search string found, as
  1185.   defined by the Direction, Scope, and Origin options.
  1186.  BEN and Environment Variables 
  1187. Several of BEN's functions (IE. GetKey, GetKeyU, GetLine, GetLineU, DirDisp, DirDispA, GetCD and GetVideo) return their results using environment variables. After you use any one of these functions, you can access the data that BEN returns by calling the variable %BEN%. Just put %BEN% in your batch file where you want the data to appear. For example, if you want to get the user's name and re-display it, you can do the following: e
  1188.  BEN Write White Black Please~enter~your~name:~; GetLine
  1189.  BEN Write White Black Your~name~is~%BEN%!
  1190. If you stack several functions that return data via environment variables, the first result would be stored into %BEN%, the second result into %BEN2%, the third into %BEN3%, and so on. For example, if you want to ask the user to enter two favorite colors and re-display them, you can do the following: 
  1191.  BEN Write White Black Enter~your~two~favorite~colors:
  1192.  BEN GetLine GetLine
  1193.  BEN Write White Black So~they~are:~%BEN%~and~%BEN2%!
  1194.  Note:     At the end of your batch file, you should make a call
  1195.            to BEN's CleanUp function to erase all the variables
  1196.            that BEN have created (IE %BEN%, %BEN2%, %BEN3%, etc.)
  1197.